package org.jeecg.modules.demo.document.service;



import org.jeecg.modules.demo.document.utils.FilesDO;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2020-05-01 13:21:06
 */
public interface FilesService {
	
	FilesDO get(Integer id);
	
	List<FilesDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(FilesDO file);
	
	int update(FilesDO file);
	
	int remove(Integer id);
	
	int batchRemove(Integer[] ids);

	File putBatchFilesInZip(List<FilesDO> files,File tempFile) throws IOException;

	File putFilesPathInZip(List<String> filespath, File tempFile, List<String> names,List<Integer> idList) throws IOException;

	List<FilesDO> getbyuserid(long userid);

	List<FilesDO> getbyNote1(String note1);

	List<FilesDO> getAll();

}
